#include <iostream>
#include <string>  
#include "../include/controller.h"
using namespace std;

int main(){
    
    Controller ctrl;
    while (true)
    {
        cout << "0:退出\n1:录入小车\n2:分配小车\n3:查看小车信息\n4:查看学生信息" << endl;
        int command;
        cin >> command;
        switch (command)
        {
        case 0:
            return 0;
            break;

        case 1:
            ctrl.recordCar();
            break;

        case 2:
            ctrl.allocationCar();
            break;

        case 3:
            ctrl.displayCarInformation();
            break;

        case 4:
            ctrl.displayStudentInformation();
            break;

        default:
            cout << "请输入有效的指令" << endl;
            cin >> command;
            break;
        }
        
    }
    return 0;
}